import * as PathUtils from "../utils/pathUtils";
import { TaskList } from "@model/TaskList";
import { defineStore } from "pinia";

const UseTask = defineStore("taskList", {
  state() {
    const taskList = PathUtils.taskInit;
    return {
      taskList: taskList,
    };
  },
  actions: {
    setTaskList: function (taskList: TaskList) {
      // console.log("surfaceSetting", surfaceSetting);
      // console.log('surfaceSetting',...surfaceSetting)
      this.getTaskList().setInfo(taskList);
      // this.surfaceSetting.setInfo(...surfaceSetting);
      // this.setting = setting;
    },
    getTaskList: function (): TaskList {
      return this.taskList;
    },
  },
  getters: {},
});
export default UseTask;
